<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %>
<%-- ///////////////////////////////////////////////////////////////////// --%>
<%--注意加载顺序jquery要先于layer加载--%>
<script type="text/javascript" src="${ctxPath}/static/js/jquery1.8.0.min.js" ></script>
<%--<script type="text/javascript" src="http://apps.bdimg.com/libs/jquery/2.0.0/jquery.min.js"/>--%>
<script type="text/javascript" src="${ctxPath}/static/layer/layer.js" ></script>
<script type="text/javascript" src="${ctxPath}/static/js/amazeui.min.js" ></script>
<script type="text/javascript" src="${ctxPath}/static/js/Dante.extends.js" ></script>
<script type="text/javascript" src="${ctxPath}/static/js/jquery.validate.min.js" ></script>
<script type="text/javascript" src="${ctxPath}/static/bootstrap/js/bootstrap.min.js" ></script>
<script type="text/javascript" src="${ctxPath}/static/js/select2.js" ></script>
<%--<script type="text/javascript" src="${ctxPath}/static/js/jquery.spinner.js"></script>--%>
<script>
     var level = 'info';
//    var level = '';
    var logger = {
        info: function (data) {
            if (!data) { data={}; }
            if ( level == 'info') {
                console.group((null != data.groupName || undefined != data.groupName)? data.groupName :'----当初是你要分开分开就分开----');
                if ((undefined != data.data)) {
                    console.log("[INFO]页面:[{0}]-数据:[{1}]-描述:[{2}]".format(data.pageName, JSON.stringify(data.data), data.desc));
                } else {
                    console.log(data);
                }
                console.groupEnd();
            }
        },
        error: function (data) {
            if ( level == 'error') {
                console.log(data);
            }
        },
        debug: function (data) {
            if ( level == 'debug') {
                console.log(data);
            }
        },
        warn :function (data) {
            if ( level == 'warn') {
                console.log(data);
            }
        }
    }

    $.extend($.validator.messages, {
        required: "必选字段",
        remote: "请修正该字段",
        email: "请输入正确格式的电子邮件",
        url: "请输入合法的网址",
        date: "请输入合法的日期",
        dateISO: "请输入合法的日期 (ISO).",
        number: "请输入合法的数字",
        digits: "只能输入整数",
        creditcard: "请输入合法的信用卡号",
        equalTo: "请再次输入相同的值",
        accept: "请输入拥有合法后缀名的字符串",
        maxlength: $.validator.format("请输入一个长度最多是 {0} 的字符串"),
        minlength: $.validator.format("请输入一个长度最少是 {0} 的字符串"),
        rangelength: $.validator.format("请输入一个长度介于 {0} 和 {1} 之间的字符串"),
        range: $.validator.format("请输入一个介于 {0} 和 {1} 之间的值"),
        max: $.validator.format("请输入一个最大为 {0} 的值"),
        min: $.validator.format("请输入一个最小为 {0} 的值")
    });

    function lookforward() {
       top.layer.msg('该功能未开放!敬请期待!',{time:2000});
    }

</script>